package com.hadoop.sxtmr;

import org.apache.hadoop.io.WritableComparable;
import org.apache.hadoop.io.WritableComparator;

public class GroupHot extends WritableComparator{
	public GroupHot(){
		super(KeyPair.class,true);
	}

	@Override
	public int compare(WritableComparable a, WritableComparable b) {
		System.out.println("group.class");
		KeyPair o1 = (KeyPair)a;
		KeyPair o2 = (KeyPair)b;
		return Integer.compare(o1.getYear(), o2.getYear());
	}
	
	
}
